package com.example.juc.until;

import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.CopyOnWriteArraySet;

public class List123 {
    public  static void main(String[] args) {
        List alist = new ArrayList();
        List vlist= new Vector();
        List clist = new CopyOnWriteArrayList();
        List list =  Collections.synchronizedList(new ArrayList<>());
        Set set =new HashSet();
        Set set1 =new CopyOnWriteArraySet();
        Map map =new HashMap();
        new Hashtable();
        Map map1 =new ConcurrentHashMap();
        for (int i = 0; i < 30; i++) {
            new Thread(() -> {
                list.add(UUID.randomUUID().toString().subSequence(0,8));
                System.out.println(list);
            },"i").start();
        }
    }
}
